﻿using System;
using System.Collections.Generic;
using System.Text;
using System.Collections.ObjectModel;

namespace PM.Entity
{
    public class Client : Person
    {
        #region public methods
        /// <summary>
        /// default constructor of Bank. 
        /// </summary>
        public Client()
        {
            this.ClientId   = string.Empty;            
            this.NoOfJointInvestors = 0;            
            this.Occupation = string.Empty;
            this.SpouseId = string.Empty;
            this.AdvisorId = string.Empty;
            this.RegDate = DateTime.MinValue;
            this.Remarks = string.Empty;
            this.Active = false;
            this.CDS = string.Empty;
            this.BankAccNo = string.Empty;
        }

        public Client(string client_id)
        {
            this.ClientId = client_id;
        }

        #endregion


        #region property

        public string ClientId { get; set; }
        public string CDS { get; set; }
        public int    NoOfJointInvestors { get; set; }
        public string Occupation { get; set; }
        public string AdvisorId { get; set; }
        public string SpouseId { get; set; }
        public DateTime RegDate { get; set; }
        public string Remarks { get; set; }        
        public bool Active { get; set; }
        public string BankAccNo { get; set; }
               
        #endregion

        #region methods
        public bool MatchFound(Client client)
        {
            return this.ClientId == client.ClientId;
        }

        #endregion
    }

    public class ClientCollection : Collection<Client>
    {
        public ClientCollection()
        {
        }
    }
}
 